package com.ruoyi.finances.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.finances.mapper.TbAccountBankMapper;
import com.ruoyi.finances.domain.TbAccountBank;
import com.ruoyi.finances.service.ITbAccountBankService;

/**
 * 银行存款Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-14
 */
@Service
public class TbAccountBankServiceImpl implements ITbAccountBankService 
{
    @Autowired
    private TbAccountBankMapper tbAccountBankMapper;

    /**
     * 查询银行存款
     * 
     * @param id 银行存款主键
     * @return 银行存款
     */
    @Override
    public TbAccountBank selectTbAccountBankById(Long id)
    {
        return tbAccountBankMapper.selectTbAccountBankById(id);
    }

    /**
     * 查询银行存款列表
     * 
     * @param tbAccountBank 银行存款
     * @return 银行存款
     */
    @Override
    public List<TbAccountBank> selectTbAccountBankList(TbAccountBank tbAccountBank)
    {
        return tbAccountBankMapper.selectTbAccountBankList(tbAccountBank);
    }

    /**
     * 新增银行存款
     * 
     * @param tbAccountBank 银行存款
     * @return 结果
     */
    @Override
    public int insertTbAccountBank(TbAccountBank tbAccountBank)
    {
        return tbAccountBankMapper.insertTbAccountBank(tbAccountBank);
    }

    /**
     * 修改银行存款
     * 
     * @param tbAccountBank 银行存款
     * @return 结果
     */
    @Override
    public int updateTbAccountBank(TbAccountBank tbAccountBank)
    {
        return tbAccountBankMapper.updateTbAccountBank(tbAccountBank);
    }

    /**
     * 批量删除银行存款
     * 
     * @param ids 需要删除的银行存款主键
     * @return 结果
     */
    @Override
    public int deleteTbAccountBankByIds(Long[] ids)
    {
        return tbAccountBankMapper.deleteTbAccountBankByIds(ids);
    }

    /**
     * 删除银行存款信息
     * 
     * @param id 银行存款主键
     * @return 结果
     */
    @Override
    public int deleteTbAccountBankById(Long id)
    {
        return tbAccountBankMapper.deleteTbAccountBankById(id);
    }
}
